import {get,post} from "../../utils/request"
// 考试列表（阅卷）
const getTestList=(params:any)=>{
    return get('test/list',params)
}
// 考试学生列表
const getStudentList=(params:any)=>{
    return get('student/test',params)
}
// 部门列表
const getDepartmentList=()=>{
    return get('department/list')
}
// 班级列表
const getClassList=(depid:number)=>{
    return get('classes/list',{depid})
}
// 获取学生答题列表
const getListforstu=(testid:number,studentid:number)=>{
    return get('question/listforstu',{testid,studentid})
}
// 老师判卷
const postStudentanswerUpdate=(params:any)=>{
    return post('studentanswer/update',params)
}
export {
    getTestList,
    getStudentList,
    getDepartmentList,
    getClassList,
    getListforstu,
    postStudentanswerUpdate
}